import request from '../utils/request'

// 获取验证码
export const getCodeApi = () => {
  return request({ url: '/captchaImage' })
}

// 登录
export const loginApi = (data) => {
  return request({ url: '/login', method: 'POST', data })
}
